//
//  LSZMyGospelValuesHeaderCell.m
//  JKFuYinProject
//
//  Created by 九酷 on 2018/6/14.
//  Copyright © 2018年 LC. All rights reserved.
//

#import "LSZMyGospelValuesHeaderCell.h"

@implementation LSZMyGospelValuesHeaderCell

-(id)initWithReuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithReuseIdentifier:reuseIdentifier];
    if (self) {
        UIView * viewBack = [[UIView alloc]init];
        viewBack.backgroundColor = [UIColor whiteColor];
        [self addSubview:viewBack];


        self.labelValue = [[UILabel alloc]init];
        self.labelValue.textColor = navColor;
        self.labelValue.textAlignment = NSTextAlignmentCenter;
        [self addSubview:self.labelValue];

        self.imageViewPrompt = [[UIImageView alloc]init];
        self.imageViewPrompt.image = [UIImage imageNamed:@"红感叹号"];
        [self addSubview:self.imageViewPrompt];

        self.labelExplain = [[UILabel alloc]init];
        self.labelExplain.textAlignment = NSTextAlignmentCenter;
        self.labelExplain.textColor = titleColorLSZ;
        self.labelExplain.text = @"1000福音值=1元,可捐赠,购物可低现金";
        [self addSubview:self.labelExplain];
        if (ScreenWidth == 320) {
            //5
            [self.labelValue setFont:[UIFont fontWithName:@"Helvetica-Bold" size:24]];

            self.labelExplain.font = FONT_(12);
            viewBack.frame = CGRectMake( 0, 0, ScreenWidth, 114);
            self.labelValue.frame = CGRectMake(0, 30, ScreenWidth, 30);
            self.imageViewPrompt.frame = CGRectMake(0, CGRectGetMaxY(self.labelValue.frame)+10, 14, 14);
            self.labelExplain.frame = CGRectMake(0, CGRectGetMaxY(self.labelValue.frame)+10, ScreenWidth, 14);
        }else if(ScreenWidth == 375){
            // 6 7
            [self.labelValue setFont:[UIFont fontWithName:@"Helvetica-Bold" size:21.5]];

            self.labelExplain.font = FONT_(12.5);
            viewBack.frame = CGRectMake( 0, 0, ScreenWidth, 118);
            self.labelValue.frame = CGRectMake(0, 30, ScreenWidth, 32);
            self.imageViewPrompt.frame = CGRectMake(0, CGRectGetMaxY(self.labelValue.frame)+10, 16, 16);
            self.labelExplain.frame = CGRectMake(0, CGRectGetMaxY(self.labelValue.frame)+10, ScreenWidth, 16);

        }else {
            //plus
            [self.labelValue setFont:[UIFont fontWithName:@"Helvetica-Bold" size:22]];
            self.labelExplain.font = FONT_(13);
            viewBack.frame = CGRectMake( 0, 0, ScreenWidth, 122);
            self.labelValue.frame = CGRectMake(0, 30, ScreenWidth, 34);
            self.imageViewPrompt.frame = CGRectMake(0, CGRectGetMaxY(self.labelValue.frame)+10, 18, 18);
            self.labelExplain.frame = CGRectMake(0, CGRectGetMaxY(self.labelValue.frame)+10, ScreenWidth, 18);
        }

    }
    return self;
}

@end
